package com.mjfeed.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @description 浏览日志
 * @author zhaominglei
 * @date 2015年5月24日
 */
@Entity
@Table(name="feed_browse_log")
public class BrowseLog extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 80066004081474264L;
	/** 会员 **/
	private Member member;
	/** 商品 **/
	private Product product;
	/** ip **/
	private String ip;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="member_id", nullable = false, updatable = false)
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="product_id", nullable = false, updatable = false)
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}

}
